module CoreHelper
  
  $logout = "users/templates/logout"
  $login = "core/templates/login"
  
  #Used in the main controller index method
  def current_user_type(user_session)
    user = User.find(user_session)
    
    if (user.privilege == 1)
      return $logout
    elsif (user.privilege == 0)
      return $logout
    else
      return $login
    end
  end
  
end
